package com.gxp.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gxp.mapper.AuthorityMapper;
import com.gxp.pojo.Authority;
import com.gxp.pojo.Role;
import com.gxp.service.AuthorityService;

@Service
public class AuthorityServiceImpl implements AuthorityService {
	
	@Autowired
	private AuthorityMapper authorityMapper;

	@Override
	public Authority findById(int authId) {
		return authorityMapper.findById(authId);
	}

	@Override
	public List<Authority> findAllAuth() {
		return authorityMapper.findAllAuth();
	}

	@Override
	public List<Authority> findByRole(Role role) {
		return authorityMapper.findByRole(role);
	}

}
